// pages/jiang/jiang.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    z: false,
    t:true,
    cnt:0,

    JList: [
      {
        url: "",
        context: ""
      }
     
  ]
    
  },

  btN:function(){

    this.setData({
      z: false,
      t:true,
    })
  },



  chouJiang:function(){
    this.setData( {cnt : this.data.cnt + 10});
    let num = this.data.cnt;
    if( num >990){
      
      this.setData( {cnt : 0});


    }

    wx.showToast({  // 显示加载中loading效果2秒
      title: '抽卡中',
      icon: 'loading',
      duration: 500,
      
    });

    let i1 =  Math.ceil(Math.random()*1000); 
    let a1 ;
    let b1;

    if(i1<=1){     
      a1 = "🔥🔥🔥极品"
      b1 = "https://i0.hdslb.com/bfs/article/b2cdcdad79d873e7440ad9f52009d5e918d2f16a.jpg@942w_1334h_progressive.webp"
    }else if(  i1>1 &&  i1<=6  ){
          a1 = "⭐⭐⭐⭐⭐传说"
          b1 = "https://i0.hdslb.com/bfs/article/d0f80d003bb43965d346e0d41f27543a2ccc1827.jpg@768w_1086h_progressive.webp"
    }else if(  i1>6 && i1<=51  ){
      a1 = "⭐⭐⭐⭐史诗"
      b1 = "https://i0.hdslb.com/bfs/article/02b1b72ce0e9e01f0f745cf275892c2bcfdf568a.png@942w_1676h_progressive.webp"
    }else if( i1>51 && i1<=200 ){
      a1 = "⭐⭐⭐稀有"
      b1 = "https://i0.hdslb.com/bfs/article/d76c5286c224e7b223ca6304ce66306293d6ae30.jpg@942w_1344h_progressive.webp"
    }else if( i1>200 && i1<=500 ){
      a1 = "⭐⭐普通"
      b1 = "https://i0.hdslb.com/bfs/article/13352fc29d55077d6efe9be4d622fe4b161e3ee4.png@942w_986h_progressive.webp"
    }else{
      a1 = "⭐辣鸡"
      b1 = "https://inews.gtimg.com/newsapp_bt/0/14494069748/641"
    }


    let i2 =  Math.ceil(Math.random()*1000); 
    let a2 ;
    let b2;
    if(i2<= 1){     
      a2 = "🔥🔥🔥极品"
      b2 = "https://i0.hdslb.com/bfs/article/b2cdcdad79d873e7440ad9f52009d5e918d2f16a.jpg@942w_1334h_progressive.webp"
    }else if(  i2>1 &&  i2<=6  ){
          a2 = "⭐⭐⭐⭐⭐传说"
          b2= "https://i0.hdslb.com/bfs/article/358a302f6b9210a4c67cc4b8861d49403ce3e0e0.jpg@768w_1086h_progressive.webp"
    }else if(  i2>6 && i2<=51  ){
      a2 = "⭐⭐⭐⭐史诗"
      b2 = "https://i0.hdslb.com/bfs/article/fa2651286dc0ae6981d5aac6c025234c000824fc.png@942w_1676h_progressive.webp"
    }else if( i2>51 && i2<=200 ){
      a2 = "⭐⭐⭐稀有"
      b2 = "https://i0.hdslb.com/bfs/article/3f83ec0c25a63870a0dc7a157de952e460423461.jpg@942w_965h_progressive.webp"
    }else if( i2>200 && i2<=500 ){
      a2 = "⭐⭐普通"
      b2= "https://i0.hdslb.com/bfs/article/9668679d00a849ccca0448bf5039b046aad3d790.png@942w_1352h_progressive.webp"
    }else{
      a2 = "⭐辣鸡"
      b2 = "https://inews.gtimg.com/newsapp_bt/0/14494069748/641"
    }
    
    let i3 =   Math.ceil(Math.random()*1000); 
    let a3 ;
    let b3;
    if(i3<=1){     
      a3 = "🔥🔥🔥极品"
      b13= "https://i0.hdslb.com/bfs/article/b2cdcdad79d873e7440ad9f52009d5e918d2f16a.jpg@942w_1334h_progressive.webp"
    }else if(  i3>1 &&  i3<=6  ){
          a3 = "⭐⭐⭐⭐⭐传说"
          b3= "https://i0.hdslb.com/bfs/article/358a302f6b9210a4c67cc4b8861d49403ce3e0e0.jpg@768w_1086h_progressive.webp"
    }else if(  i3>6 && i3<=51  ){
      a3 = "⭐⭐⭐⭐史诗"
      b3 = "https://i0.hdslb.com/bfs/article/363bd82389e0c72100377d2a0c8dc51aff37f2f6.png@942w_1676h_progressive.webp"
    }else if( i3>51 && i3<=200 ){
      a3 = "⭐⭐⭐稀有"
      b3 = "https://i0.hdslb.com/bfs/article/71ec2fc90cbf352c204469e37d482a28735e11bf.jpg@942w_942h_progressive.webp"
    }else if( i3>200 && i3<=500 ){
      a3 = "⭐⭐普通"
      b3= "https://i0.hdslb.com/bfs/article/dfc9d8e5c238f32dad217bfb9f8473239b4c567d.png@942w_1352h_progressive.webp"
    }else{
      a3 = "⭐辣鸡"
      b3 = "https://inews.gtimg.com/newsapp_bt/0/14494069748/641"
    }

    let i4 = Math.ceil(Math.random()*1000); 
    let a4 ;
    let b4;
    if(i4<=1){     
      a4 = "🔥🔥🔥极品"
      b4 = "https://i0.hdslb.com/bfs/article/b2cdcdad79d873e7440ad9f52009d5e918d2f16a.jpg@942w_1334h_progressive.webp"
    }else if(  i4>1 &&  i4<=6  ){
          a4 = "⭐⭐⭐⭐⭐传说"
          b4= "https://i0.hdslb.com/bfs/article/a4063e8d41ac4f063684bedff65e38f68c560f79.jpg@768w_1086h_progressive.webp"
    }else if(  i4>6 && i4<=51  ){
      a4 = "⭐⭐⭐⭐史诗"
      b4 = "https://i0.hdslb.com/bfs/article/02b1b72ce0e9e01f0f745cf275892c2bcfdf568a.png@942w_1676h_progressive.webp"
    }else if( i4>51 && i4<=200 ){
      a4 = "⭐⭐⭐稀有"
      b4 = "https://i0.hdslb.com/bfs/article/dc761fdc78300080111efff329497f251483f36d.jpg@942w_942h_progressive.webp"
    }else if( i4>200 && i4<=500 ){
      a4 = "⭐⭐普通"
      b4= "https://i0.hdslb.com/bfs/article/e0b2358b4add2f8413794c1ba3cece5faee5a71c.png@942w_1352h_progressive.webp"
    }else{
      a4 = "⭐辣鸡"
      b4 = "https://inews.gtimg.com/newsapp_bt/0/14494069748/641"
    }

    let i5 = Math.ceil(Math.random()*1000); 
    let a5 ;
    let b5;
    if(i5<=1){     
      a5 = "🔥🔥🔥极品"
      b5 = "https://i0.hdslb.com/bfs/article/b2cdcdad79d873e7440ad9f52009d5e918d2f16a.jpg@942w_1334h_progressive.webp"
    }else if(  i5>1 &&  i5<=6  ){
          a5 = "⭐⭐⭐⭐⭐传说"
          b5= "https://i0.hdslb.com/bfs/article/358a302f6b9210a4c67cc4b8861d49403ce3e0e0.jpg@768w_1086h_progressive.webp"
    }else if(  i5>6 && i5<=51  ){
      a5 = "⭐⭐⭐⭐史诗"
      b5 = "https://i0.hdslb.com/bfs/article/fa2651286dc0ae6981d5aac6c025234c000824fc.png@942w_1676h_progressive.webp"
    }else if( i5>51 && i5<=200 ){
      a5 = "⭐⭐⭐稀有"
      b5= "https://i0.hdslb.com/bfs/article/10a92f32a701f0acbade8aa9056a821ebfd91b60.png@942w_942h_progressive.webp"
    }else if( i5>200 && i5<=500 ){
      a5 = "⭐⭐普通"
      b5= "https://i0.hdslb.com/bfs/article/13352fc29d55077d6efe9be4d622fe4b161e3ee4.png@942w_986h_progressive.webp"
    }else{
      a5 = "⭐辣鸡"
      b5 = "https://inews.gtimg.com/newsapp_bt/0/14494069748/641"
    }

    let i6 = Math.ceil(Math.random()*1000); 
    let a6 ;
    let b6;
    if(i6<=1){     
      a6 = "🔥🔥🔥极品"
      b6 = "https://i0.hdslb.com/bfs/article/b2cdcdad79d873e7440ad9f52009d5e918d2f16a.jpg@942w_1334h_progressive.webp"
    }else if(  i6>1 &&  i6<=6  ){
          a6 = "⭐⭐⭐⭐⭐传说"
          b6= "https://i0.hdslb.com/bfs/article/a4063e8d41ac4f063684bedff65e38f68c560f79.jpg@768w_1086h_progressive.webp"
    }else if(  i6>6 && i6<=51  ){
      a6 = "⭐⭐⭐⭐史诗"
      b6 ="https://i0.hdslb.com/bfs/article/054d858b04d4c62b8af76c3b1d5ae2f2ebdeaca1.png@942w_1676h_progressive.webp"
    }else if( i6>51 && i6<=200 ){
      a6 = "⭐⭐⭐稀有"
      b6 =  "https://i0.hdslb.com/bfs/article/71ec2fc90cbf352c204469e37d482a28735e11bf.jpg@942w_942h_progressive.webp"
    }else if( i6>200 && i6<=500 ){
      a6 = "⭐⭐普通"
      b6= "https://i0.hdslb.com/bfs/article/abdb6c3ef6adfb4b97e16dca09978cca3702e64b.png@942w_953h_progressive.webp"
    }else{
      a6 = "⭐辣鸡"
      b6 = "https://inews.gtimg.com/newsapp_bt/0/14494069748/641"
    }

    let i7 = Math.ceil(Math.random()*1000); 
    let a7 ;
    let b7;
    if(i7<=1){     
      a7 = "🔥🔥🔥极品"
      b7 = "https://i0.hdslb.com/bfs/article/b2cdcdad79d873e7440ad9f52009d5e918d2f16a.jpg@942w_1334h_progressive.webp"
    }else if(  i7>1 &&  i7<=6  ){
          a7 = "⭐⭐⭐⭐⭐传说"
          b7= "https://i0.hdslb.com/bfs/article/358a302f6b9210a4c67cc4b8861d49403ce3e0e0.jpg@768w_1086h_progressive.webp"
    }else if(  i7>6 && i7<=51  ){
      a7 = "⭐⭐⭐⭐史诗"
      b7= "https://i0.hdslb.com/bfs/article/02b1b72ce0e9e01f0f745cf275892c2bcfdf568a.png@942w_1676h_progressive.webp"
    }else if( i7>51 && i7<=200 ){
      a7 = "⭐⭐⭐稀有"
      b7 = "https://i0.hdslb.com/bfs/article/dc761fdc78300080111efff329497f251483f36d.jpg@942w_942h_progressive.webp"
    }else if( i7>200 && i7<=500 ){
      a7 = "⭐⭐普通"
      b7= "https://i0.hdslb.com/bfs/article/3e5939d805ae4fd26ae967ebb87b96afaa149dca.png@942w_942h_progressive.webp"
    }else{
      a7= "⭐辣鸡"
      b7 = "https://inews.gtimg.com/newsapp_bt/0/14494069748/641"
    }

    let i8 =  Math.ceil(Math.random()*1000); 
    let a8 ;
    let b8;
    if(i8<=1){     
      a8= "🔥🔥🔥极品"
      b8 = "https://i0.hdslb.com/bfs/article/b2cdcdad79d873e7440ad9f52009d5e918d2f16a.jpg@942w_1334h_progressive.webp"
    }else if(  i8>1 &&  i8<=6  ){
          a8 = "⭐⭐⭐⭐⭐传说"
          b8= "https://i0.hdslb.com/bfs/article/d0f80d003bb43965d346e0d41f27543a2ccc1827.jpg@768w_1086h_progressive.webp"
    }else if(  i8>6 && i8<=51  ){
      a8 = "⭐⭐⭐⭐史诗"
      b8 = "https://i0.hdslb.com/bfs/article/363bd82389e0c72100377d2a0c8dc51aff37f2f6.png@942w_1676h_progressive.webp"
    }else if( i8>51 && i8<=200 ){
      a8 = "⭐⭐⭐稀有"
      b8 = "https://i0.hdslb.com/bfs/article/f9371e369fdec1ae9a9804fad94c21ea963e8010.jpg@942w_942h_progressive.webp"
    }else if( i8>200 && i8<=500 ){
      a8 = "⭐⭐普通"
      b8= "https://i0.hdslb.com/bfs/article/acc3cd433b9ad26efbdeba519e35dce1027f7ab4.png@780w_1112h_progressive.webp"
    }else{
      a8 = "⭐辣鸡"
      b8 = "https://inews.gtimg.com/newsapp_bt/0/14494069748/641"
    }

    let i9 =  Math.ceil(Math.random()*1000); 
    let a9 ;
    let b9;
    if(i9<=1){     
      a9 = "🔥🔥🔥极品"
      b9= "https://i0.hdslb.com/bfs/article/b2cdcdad79d873e7440ad9f52009d5e918d2f16a.jpg@942w_1334h_progressive.webp"
    }else if(  i9>1 &&  i9<=6  ){
          a9 = "⭐⭐⭐⭐⭐传说"
          b9= "https://i0.hdslb.com/bfs/article/a4063e8d41ac4f063684bedff65e38f68c560f79.jpg@768w_1086h_progressive.webp"
    }else if(  i9>6 && i9<=51  ){
      a9 = "⭐⭐⭐⭐史诗"
      b9 ="https://i0.hdslb.com/bfs/article/054d858b04d4c62b8af76c3b1d5ae2f2ebdeaca1.png@942w_1676h_progressive.webp"
    }else if( i9>51 && i9<=200 ){
      a9 = "⭐⭐⭐稀有"
      b9=  "https://i0.hdslb.com/bfs/article/10a92f32a701f0acbade8aa9056a821ebfd91b60.png@942w_942h_progressive.webp"
    }else if( i9>200 && i9<=500 ){
      a9 = "⭐⭐普通"
      b9= "https://i0.hdslb.com/bfs/article/c554f7394f3192d8af1dfded052e995f8c94e41e.png@942w_942h_progressive.webp"
    }else{
      a9 = "⭐辣鸡"
      b9 = "https://inews.gtimg.com/newsapp_bt/0/14494069748/641"
    }

    let i0 = Math.ceil(Math.random()*1000); 
    let a0 ;
    let b0;
    if(i0<=1){     
      a0 = "🔥🔥🔥极品"
      b0 = "https://i0.hdslb.com/bfs/article/b2cdcdad79d873e7440ad9f52009d5e918d2f16a.jpg@942w_1334h_progressive.webp"
    }else if(  i0>1 &&  i0<=6  ){
          a0 = "⭐⭐⭐⭐⭐传说"
          b0= "https://i0.hdslb.com/bfs/article/d0f80d003bb43965d346e0d41f27543a2ccc1827.jpg@768w_1086h_progressive.webp"
    }else if(  i0>6 && i0<=51  ){
      a0 = "⭐⭐⭐⭐史诗"
      b0 = "https://i0.hdslb.com/bfs/article/02b1b72ce0e9e01f0f745cf275892c2bcfdf568a.png@942w_1676h_progressive.webp"
    }else if( i0>51 && i0<=200 ){
      a0 = "⭐⭐⭐稀有"
      b0 = "https://i0.hdslb.com/bfs/article/ca4e455afa1acdeaba2bee220243d03f785bf42a.jpg@942w_942h_progressive.webp"
    }else if( i0>200 && i0<=500 ){
      a0 = "⭐⭐普通"
      b0= "https://i0.hdslb.com/bfs/article/9451833330c2308bf82ef9bd914731f49618eb2f.png@942w_942h_progressive.webp"
    }else{
      a0 = "⭐辣鸡"
      b0 = "https://inews.gtimg.com/newsapp_bt/0/14494069748/641"
    }

this.setData({
  
  JList:[
    {
      url: b1,
      context:  a1
    },
    {
      url: b2,
      context:  a2
    },
    {
      url: b3,
      context:  a3
    },
    {
      url: b4,
      context:  a4
    },
    {
      url: b5,
      context:  a5
    },
    {
      url: b6,
      context:  a6
    },
    {
      url: b7,
      context:  a7
    },
    {
      url: b8,
      context:  a8
    },
    {
      url: b9,
      context:  a9
    },
    {
      url: b0,
      context:  a0,
    },
    
  ],

  z:true,
  t:false

  
})

  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
      
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
     
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})